home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / Macintosh Programmer’s Workshop / MPW 3.1 / MPW / Interfaces / CIncludes / ErrMgr.h < prev    next >
Text File  |  1990-12-13  |  1KB  |  48 lines

  1. /************************************************************
  2.  
  3. Created: Thursday, September 7, 1989 at 9:13 PM
  4.     ErrMgr.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     <<< Error File Manager Routines Interface File >>>
  9.     
  10.     Copyright Apple Computer, Inc.    1987-1989
  11.     All rights reserved
  12.     
  13.     This file contains:
  14.     
  15.     InitErrMgr(toolname, sysename, Nbrs)  - ErrMgr initialization
  16.     CloseErrMgr()                          - Close ErrMgr message files
  17.     GetSysErrText(Nbr, Msg)               - Get a system error message for a number
  18.     GetToolErrText(Nbr, Insert, Msg)      - Get a tool error message for a number
  19.     AddErrInsert(insert, msgString)       - Add an insert to a message
  20.     addInserts(msgString, insert,...)      - Add a number of inserts to a message
  21.     
  22.  
  23. ************************************************************/
  24.  
  25.  
  26. #ifndef __ERRMGR__
  27. #define __ERRMGR__
  28.  
  29. #ifndef __TYPES__
  30. #include <Types.h>
  31. #endif
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. void InitErrMgr(char *toolErrFilename,char *sysErrFilename,Boolean showToolErrNbrs);
  37. void CloseErrMgr(void); 
  38. char *GetSysErrText(short msgNbr,char *errMsg); 
  39. char *GetToolErrText(short msgNbr,char *errInsert,char *errMsg);
  40. void AddErrInsert(unsigned char *insert,unsigned char *msgString);
  41. unsigned char *addInserts(unsigned char *msgString,unsigned char *insert,
  42.     ... );
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46.  
  47. #endif
  48.